#pragma once

#include <cdroid.h>

class AdapterDataDown
{
public:
    int pos;
    ViewGroup *adapterLayout;
    std::string name;

    AdapterDataDown(int _pos, ViewGroup *_adapterLayout) : pos(_pos), adapterLayout(_adapterLayout) {};
};

class MyPageAdapterDown : public PagerAdapter
{
public:
    MyPageAdapterDown();
    int getCount() override;
    bool isViewFromObject(View *view, void *object) override;
    void *instantiateItem(ViewGroup *container, int position) override;
    void destroyItem(ViewGroup *container, int position, void *object) override;
    std::string getPageTitle(int position) override;
    float getPageWidth(int position) override;

    std::vector<AdapterDataDown> getDataList()
    {
        return dataList;
    }

private:
    std::vector<AdapterDataDown> dataList;
};